Skip to content

SerialReplayLatestSubjectAsync class

Defined in

Namespace: ReactiveUI.Extensions.Async.Subjects Assembly: ReactiveUI.Extensions.dll Full name: ReactiveUI.Extensions.Async.Subjects.SerialReplayLatestSubjectAsync<T> Modifiers: public sealed

Summary

View source

        Represents an asynchronous subject that replays only the latest value to new subscribers and ensures that
        notifications are delivered to observers in a serial, thread-safe manner.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class SerialReplayLatestSubjectAsync~T~
class BaseReplayLatestSubjectAsync~T~
BaseReplayLatestSubjectAsync~T~ <|-- SerialReplayLatestSubjectAsync~T~

Inherits from: BaseReplayLatestSubjectAsync

Remarks

This subject is designed for scenarios where only the most recent value is relevant to subscribers. When a new observer subscribes, it immediately receives the latest value (if any) and then all subsequent notifications. All observer notifications are performed asynchronously and in a serial order, ensuring thread safety. This type is suitable for use cases where replaying only the latest value is desired, such as event streams or state broadcasts.

Constructors

NameSummary
.ctorRepresents an asynchronous subject that replays only the latest value to new subscribers and ensures that notifications are delivered to observers in a serial, thread-safe manner.

Methods

NameSummary
OnNextAsyncCoreAsynchronously notifies the specified observers with the provided value.
OnErrorResumeAsyncCoreHandles error recovery for the specified observers by resuming asynchronous processing after an error occurs.
OnCompletedAsyncCoreInvoked to asynchronously notify all observers of the completion event with the specified result.
Inherited members